package com.hd.trans.extension

import com.hd.trans.db.bean.HuDunLanguage
import com.translation.assistant.data.bean.Language
import com.translation.assistant.extension.mapping


fun HuDunLanguage.offlineLanguage(): Language {
    return Language(mapping(this.translateCode),this.name, this.shortName, this.translateCode)
}
/**
 * 支持离线翻译
 */
fun HuDunLanguage.supportOffline(): Boolean {
    return mapping(this.translateCode) != ""
}

